package com.basics.channel.mapper;

import com.basics.api.response.channel.ChannelListData;
import com.basics.api.response.channel.ChannelMsgListData;
import com.basics.api.response.channel.ChannelUserListData;
import com.basics.channel.entity.CyChannel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 频道信息 Mapper 接口
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelMapper extends BaseMapper<CyChannel> {

    List<ChannelListData> selectHomeChannelList(@Param("organizationId")Long organizationId
            , @Param("userId")Long userId,@Param("channelId")Long channelId);

    List<ChannelUserListData> selectChannelInfoForMsg(@Param("organizationId")Long organizationId, @Param("channelId")Long channelId);
}
